package org.inspiration.dudu.web.service.message.impl;

import lombok.RequiredArgsConstructor;
import org.inspiration.dudu.message.model.vo.SessionVO;
import org.inspiration.dudu.message.service.SessionService;
import org.inspiration.dudu.web.service.message.SessionFacadeService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@RequiredArgsConstructor
public class SessionFacadeServiceImpl implements SessionFacadeService {

    private final SessionService sessionService;

    @Override
    public List<SessionVO> getSessions(Long fromUserId, Integer pageNum, Integer pageSize) {
        return sessionService.getSessions(fromUserId, pageNum, pageSize);
    }
}
